class Dog {
    String name;
    int age;
    double weight;

    public Dog(String name, int age, double weight) {
        this.name = name;
        this.age = age;
        this.weight = weight;
    }

    public String say() {
        String str = "名字：" + name + ";年龄：" + age + ";体重：" + weight;
        return str;
    }
}

public class TestDog {
    public static void main(String[] args) {
        Dog s = new Dog("阿黄", 3, 40);
        System.out.println(s.say());
    }
}
